package com.his.system.manager.service.impl;

import com.his.system.manager.entity.MedicaldiseaseEntity;
import com.his.system.manager.mapper.MedicaldiseaseMapper;
import com.his.system.manager.service.IMedicaldiseaseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * IMedicaldiseaseService实现类
 *
 * @Description
 * @Author Admin
 * @Date 2020-07-17 21:19:49
 */
@Service
public class MedicaldiseaseServiceImpl implements IMedicaldiseaseService {
    @Autowired
    private MedicaldiseaseMapper mapper;

    @Override
    public Integer addEntity(MedicaldiseaseEntity entity) {
        Integer res = mapper.insert(entity);
        return res;
    }

    @Override
    public List<MedicaldiseaseEntity> selectByEntity(MedicaldiseaseEntity entity) {
        return mapper.selectByEntity(entity);
    }
}